package com.px.chapter_Dec_1.textt.FangX;

import java.util.InputMismatchException;
import java.util.Scanner;

public class EcmDef {
    public static void main(String[] args) {
     /*//   EcmDef1 ecmDef1=new EcmDef1(5);

        System.out.println(ecmDef1.getA());
        Scanner scanner=new Scanner(System.in);
        try {
            int a=scanner.nextInt();
            int b=scanner.nextInt();
            a=a/b;

            if (a<0|b<0){
                throw new FsException("为负数");
            }
            System.out.println(a);
        } catch (InputMismatchException e) {
            System.out.println("类型不一致，重新设定");
        }catch (ArithmeticException e){
            System.out.println("除数不可以为0");
        }catch (FsException e){
            System.out.println(e.getMessage());
        }
*/
    }
}
